Component({
  options: {
    addGlobalClass: true
  },
  properties: {
    modul: {
      type: Object,
      value: {}
    }
  },
  data: { 
    type: 0,
    pic: '',
    baseUrl: ''
  },
  lifetimes: {
    ready() {
      const { biz:{params = ''}, pic } = this.data.modul
      
      if(params) {
        const type = JSON.parse(params).type
        this.setData({pic, type, baseUrl: getApp().globalData.extConfig.fileBaseUrl})
      }
    }
  }
})
